package com.kcs.fxmargin.bo;

import java.math.BigDecimal;
import java.util.Date;

public class PreSettlementBO {

	private int rowNum;
	private String typeOfDeal;
	private String counterParty;
	private String dealId;
	private String instrument;
	private String branceCode;
	private String comments;	
	private String maturity;
	private Date matdate;
	private String buySell;
	private BigDecimal notional;
	private String curr;
	private BigDecimal risk;
	private BigDecimal mktValue;
	private BigDecimal cashBal;
	private BigDecimal imRequired;
	private BigDecimal deductMargin;
	private BigDecimal preSettleRisk;
	private BigDecimal addOn;
	
	
	public String getBranceCode() {
		return branceCode;
	}
	public void setBranceCode(String branceCode) {
		this.branceCode = branceCode;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public int getRowNum() {
		return rowNum;
	}
	public void setRowNum(int rowNum) {
		this.rowNum = rowNum;
	}
	public BigDecimal getAddOn() {
		return addOn;
	}
	public void setAddOn() {
		if(this.risk != null && this.notional != null) this.addOn = this.risk.add(this.notional);
		else this.addOn = new BigDecimal(0);
	}
	public String getTypeOfDeal() {
		return typeOfDeal;
	}
	public void setTypeOfDeal(String typeOfDeal) {
		this.typeOfDeal = typeOfDeal;
	}
	public String getCounterParty() {
		return counterParty;
	}
	public void setCounterParty(String counterParty) {
		this.counterParty = counterParty;
	}
	public String getDealId() {
		return dealId;
	}
	public void setDealId(String dealId) {
		this.dealId = dealId;
	}
	public String getInstrument() {
		return instrument;
	}
	public void setInstrument(String instrument) {
		this.instrument = instrument;
	}
	public String getMaturity() {
		return maturity;
	}
	public void setMaturity(String maturity) {
		this.maturity = maturity;
	}
	public Date getMatdate() {
		return matdate;
	}
	public void setMatdate(Date matdate) {
		this.matdate = matdate;
	}
	public String getBuySell() {
		return buySell;
	}
	public void setBuySell(String buySell) {
		this.buySell = buySell;
	}
	public BigDecimal getNotional() {
		return notional;
	}
	public void setNotional(BigDecimal notional) {
		this.notional = notional;
	}
	public String getCurr() {
		return curr;
	}
	public void setCurr(String curr) {
		this.curr = curr;
	}
	public BigDecimal getRisk() {
		return risk;
	}
	public void setRisk(BigDecimal risk) {
		this.risk = risk;
	}
	public BigDecimal getMktValue() {
		return mktValue;
	}
	public void setMktValue(BigDecimal mktValue) {
		this.mktValue = mktValue;
	}
	public BigDecimal getCashBal() {
		return cashBal;
	}
	public void setCashBal(BigDecimal cashBal) {
		this.cashBal = cashBal;
	}
	public BigDecimal getImRequired() {
		return imRequired;
	}
	public void setImRequired(BigDecimal imRequired) {
		this.imRequired = imRequired;
	}
	public BigDecimal getDeductMargin() {
		return deductMargin;
	}
	public void setDeductMargin(BigDecimal deductMargin) {
		this.deductMargin = deductMargin;
	}
	public BigDecimal getPreSettleRisk() {
		return preSettleRisk;
	}
	public void setPreSettleRisk(BigDecimal preSettleRisk) {
		this.preSettleRisk = preSettleRisk;
	}
	
	
}
